package com.babukuma.commons.test.websocket;

import com.babukuma.commons.websocket.SimpleWebSocketHandler;

public class WebSocketHandler extends SimpleWebSocketHandler {

	@Override
	public void onMessage(String message) {
		send(message);
	}

	@Override
	public void onClose() {
		System.out.println("close");
	}

	@Override
	public void onError(Throwable e) {
		e.printStackTrace();
	}

	@Override
	public void onOpen() {
		System.out.println("open");
	}
}
